//
//  XMMenuController.h
//  XiaoMiao
//
//  Created by 23 on 2017/11/13.
//  Copyright © 2017年 smallyou. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "XMMenuView.h"
#import "XMMenuViewProtocol.h"

@interface XMMenuController : UIViewController

/**默认索引*/
@property(nonatomic,assign) NSUInteger defaultIndex;
/**菜单栏*/
@property(nonatomic,weak,readonly) XMMenuView *menuView;
/**子控制器*/
@property(nonatomic,strong) NSMutableArray *subControllers;
/**是否可以滑动切换页面*/
@property(nonatomic,assign) BOOL isSideChange;


/**设置子控制器*/
- (void)setupChildVc;

//菜单按钮被点击，可以重写 重写之前必须先调用父类的当前方法
- (void)menuView:(XMMenuView *)menuView didMenuBtnClicked:(UIButton *)button;


@end
